//
//  MePageHeadView.m
//  DBAChain
//
//  Created by Mxionlly on 2018/9/8.
//  Copyright © 2018年 Evan. All rights reserved.
//

#import "MePageHeadView.h"
#import "CommonData.h"
#import <Masonry.h>

@implementation MePageHeadView

+ (MePageHeadView *)getHeadView
{
    MePageHeadView *headView = [[[NSBundle mainBundle] loadNibNamed:@"MePageHeadView" owner:nil options:nil] objectAtIndex:0];
    headView.frame = CGRectMake(0, 0, KScreenWidth, 272);
    headView.titleView.backgroundColor = [UIColor clearColor];
    return headView;
}

-(AssetsTopView *)titleView
{
    if (!_titleView) {
        _titleView  = [[[NSBundle mainBundle] loadNibNamed:@"AssetsTopView" owner:nil options:nil] objectAtIndex:0];
        [self addSubview:_titleView];
        [_titleView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(self).offset(0);
            make.width.offset(KScreenWidth);
            make.height.offset(70);
            make.bottom.mas_equalTo(self).offset(10);
        }];
    }
    return _titleView;
}
@end
